package com.nuorui.module.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.nuorui.module.system.domain.entity.DepartmentEntity;
import com.nuorui.module.system.domain.vo.DepartmentVO;

import java.util.List;

/**
 * 部门表
 * 
 * @author 
 * @date 2021-12-14 15:01:27
 */
public interface DepartmentMapper extends BaseMapper<DepartmentEntity> {


    /**
     * 获取部门列表
     *
     * @return
     */
    List<DepartmentVO> selectDepartmentList();

    /**
     * 获取子部门数量
     *
     * @param departmentId
     * @return
     */
    int countSubDepartment(Long departmentId);

}
